<?php 


require '../dao/dingdangdao.php';
$select=$_GET['select'];
$deliid=$_GET['delid'];
$dao=new dingdangdao();
$dingdangdel=$dao->Del($delid);
$dingdanglist=$dao->Chaxun($select);//查询id

// if(empty($_POST['dingdang'])){
// 	$infoo= "请输入";
// }
?>

<form  action="../controller/handout.php?con=dingdang&action=cha" method="post">
    <table>
    <tr>
    <td>消费类型：<select size="1" name="select">
        <option>充值</option>
        <option>购买骑手</option>
        <option>购买装备</option>
    </select></td>
    <td><input type="submit"  value="查询"/></td> 
  
    </tr>
    </table>
    </form>
   <button id="return">返回</button>
<table class="tab">
<tr>
	<td>订单ID</td>
	<td>玩家名称</td>
	<td>消费类型</td>
	<td>详情</td>
	<td>时间</td>
	<td>删除订单</td>
</tr>
<?php 
 foreach ($dingdanglist as $dingdang){ ?>
 <tr>
	<?php foreach ($dingdang as $i=>$value){?>
	<td><?php echo $value; ?></td>
	<?php } ?>
    <td><a href="main.php?url=dingdangamer.php&delid=<?php echo $dingdang['id']?>">删除</a></td> 
</tr>
<?php }?> 
</table>
<script type="text/javascript" src="../jQuery/jquery-1.9.1.min.js"></script>
<script type="text/javascript">
   $("#return").click(function(){
	   window.location.href="main.php?url=dingdangamer.php";
   });
</script>

